﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class article
    {
		public string id=null;
		public string channel_id=null;
		public string category_id=null;
		public string title=null;
		public string link_url=null;
		public string img_url=null;
		public string seo_title=null;
		public string seo_description=null;
		public string tags=null;
		public string zhaiyao=null;
		public string content=null;
		public string sort_id=null;
		public string click=null;
		public string status=null;
		public string is_msg=null;
		public string is_top=null;
		public string is_red=null;
		public string is_hot=null;
		public string is_slide=null;
		public string is_sys=null;
		public string user_name=null;
		public string add_time=null;
		public string update_time=null;
		public string user_id=null;
        public string __name__;
        public article(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.channel_id = string.Format("{0}.channel_id",__name__);
			this.category_id = string.Format("{0}.category_id",__name__);
			this.title = string.Format("{0}.title",__name__);
			this.link_url = string.Format("{0}.link_url",__name__);
			this.img_url = string.Format("{0}.img_url",__name__);
			this.seo_title = string.Format("{0}.seo_title",__name__);
			this.seo_description = string.Format("{0}.seo_description",__name__);
			this.tags = string.Format("{0}.tags",__name__);
			this.zhaiyao = string.Format("{0}.zhaiyao",__name__);
			this.content = string.Format("{0}.content",__name__);
			this.sort_id = string.Format("{0}.sort_id",__name__);
			this.click = string.Format("{0}.click",__name__);
			this.status = string.Format("{0}.status",__name__);
			this.is_msg = string.Format("{0}.is_msg",__name__);
			this.is_top = string.Format("{0}.is_top",__name__);
			this.is_red = string.Format("{0}.is_red",__name__);
			this.is_hot = string.Format("{0}.is_hot",__name__);
			this.is_slide = string.Format("{0}.is_slide",__name__);
			this.is_sys = string.Format("{0}.is_sys",__name__);
			this.user_name = string.Format("{0}.user_name",__name__);
			this.add_time = string.Format("{0}.add_time",__name__);
			this.update_time = string.Format("{0}.update_time",__name__);
			this.user_id = string.Format("{0}.user_id",__name__);
        }
        public article()
        {
			this.id = string.Format("{0}.id",__name__);
			this.channel_id = string.Format("{0}.channel_id",__name__);
			this.category_id = string.Format("{0}.category_id",__name__);
			this.title = string.Format("{0}.title",__name__);
			this.link_url = string.Format("{0}.link_url",__name__);
			this.img_url = string.Format("{0}.img_url",__name__);
			this.seo_title = string.Format("{0}.seo_title",__name__);
			this.seo_description = string.Format("{0}.seo_description",__name__);
			this.tags = string.Format("{0}.tags",__name__);
			this.zhaiyao = string.Format("{0}.zhaiyao",__name__);
			this.content = string.Format("{0}.content",__name__);
			this.sort_id = string.Format("{0}.sort_id",__name__);
			this.click = string.Format("{0}.click",__name__);
			this.status = string.Format("{0}.status",__name__);
			this.is_msg = string.Format("{0}.is_msg",__name__);
			this.is_top = string.Format("{0}.is_top",__name__);
			this.is_red = string.Format("{0}.is_red",__name__);
			this.is_hot = string.Format("{0}.is_hot",__name__);
			this.is_slide = string.Format("{0}.is_slide",__name__);
			this.is_sys = string.Format("{0}.is_sys",__name__);
			this.user_name = string.Format("{0}.user_name",__name__);
			this.add_time = string.Format("{0}.add_time",__name__);
			this.update_time = string.Format("{0}.update_time",__name__);
			this.user_id = string.Format("{0}.user_id",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "article";
            }
            else
            {
                return string.Format("article as {0}",__name__);
            }
        }
    }
}